package pwd.allen.behavior.interpreter;

/**
 * @author 门那粒沙
 * @create 2021-05-23 10:38
 **/
public class Context {
    private IExpression exp;
    public Context() {
        exp = new NonterminalExpression(new TerminalExpression1(), new TerminalExpression2("唱", "跳", "rak"));
    }
    public void operation(String info) {
        System.out.println(exp.interpret(info));
    }
}
